"""
input path_binaire
"""
import requests
import argparse

parser = argparse.ArgumentParser()
parser.add_argument("bpath", help="binary path")
args = parser.parse_args()

#check args.bpath type .zip
print args.bpath

#input form
form_destination = 'https://submit.symantec.com/websubmit/bcs.cgi'
data = {
'mode' : '2',
'fname' : 'Jonathan', 
'lname' : 'Michel-Villaz',
'cname' : 'Air Liquide',
'email' : 'j.michel-villaz-sc@airliquide.com',
'email2' : 'j.michel-villaz-sc@airliquide.com',
'pin' : '1002824986',
'critical' : 'on',
#'comments' : 'malware not detected by SEP with the protection definition X.'
'comments' : 'test script'
}

#connection to symantec
files = {'upfile': open(args.bpath, 'rb')}
response = requests.post( form_destination , data=data , files=files)

print response.status_code
print response.text
